package com.jiutong.meipengdai.ui.activitys;

import android.os.Bundle;
import android.widget.ImageView;

import com.bumptech.glide.Glide;
import com.jiutong.meipengdai.R;
import com.jiutong.meipengdai.base.BaseActivity;

import butterknife.Bind;
import butterknife.ButterKnife;
import butterknife.OnClick;

/**
 * Created by suxi on 2017/10/30.
 */

public class PhotoActivity extends BaseActivity {
    public static String EXTRA_IMAGE_URL = "img_url";
    public static String TRANSIT_PIC = "picture";
    @Bind(R.id.iv_big_img)
    ImageView ivBigImg;
    private String imageUrl;

    @Override
    public int getLayoutResouceId() {
        return R.layout.activity_photo;
    }

    @Override
    protected void initDate(Bundle savedInstanceState) {
        super.initDate(savedInstanceState);

        imageUrl = getIntent().getStringExtra(EXTRA_IMAGE_URL);
//        imageTitle = getIntent().getStringExtra(TRANSIT_PIC);
    }

    @Override
    protected void initView() {
        ButterKnife.bind(this);
        Glide.with(mContext).load(imageUrl).into(ivBigImg);
    }

    @OnClick(R.id.iv_big_img)
    public void onViewClicked() {
        finish();
    }
}
